#include <iostream>
#include "List.h"
using namespace std;

int main (int argc, char* argv[])
{
    List<double> L;
    for (int i = 0; i < 10; i++)
    {
	L.push_front(i * i);
	L.push_back(i * i);
    }

    for (int i = 0; i < 5; i++)
    {
    	L.pop_front();
    	L.pop_back();
    }
    
    auto L3 = begin(L);
    L3++;
    L.insert(L3, 100);
    
    auto L1 = begin(L);
    auto L2 = end(L);
 
  
    for (;L1 != L2; L1++)
	cout << *L1 << ", ";
    cout << "\b\b" << endl;
    return 0;
}
